Tribune

Home » Liferay Portal » English » Liferay Legacy

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
jineshv jineshv
WebKeys
17 agosto 2005 19.37
Risposta

jineshv jineshv

Punteggio: Junior Member

Messaggi: 34

Data di Iscrizione: 5 ottobre 2004

Messaggi recenti

Hello,<br /><br />I would like to what are webkeys. why are they used in such a way in all the action classes? <br /><br />
1
2DLRepository repository = &#40;DLRepository&#41;req.getAttribute&#40;
3    WebKeys.DOCUMENT_LIBRARY_REPOSITORY&#41;;
<br /><br />Not understanding the purpose of this static class?<br /><br />If we were to create a similar portlet in the ext environment, what should we do ?<br /><br />Thanks in advance<br /><br />Jin
Brett Randall
WebKeys
18 agosto 2005 4.52
Risposta

Brett Randall

Punteggio: Liferay Legend

Messaggi: 1254

Data di Iscrizione: 17 agosto 2004

Messaggi recenti

They are simply constants, used as request attribute keys, avoiding duplicated strings.<br /><br />You would apply a similar pattern to anything you put into the request as an attribute, probably using your own WebKeys class.<br />