Yup that was it. I was tired of googling, yesterday, so I've implemented it
myself.
Was a good opportunity to have a closer look at AppFuse.:-)

Martin


mraible wrote:
> 
> Yes, I believe this sounds like a reasonable approach. You might want
> to do a bit of googling to see if an existing library already exists.
> 
> Matt
> 
> On Tue, Jul 15, 2008 at 5:26 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> Hi there,
>>
>> I'd like to add language information to the user's profile. The
>> signup/userForm JSP should use a very similar construct like the
>> "appfuse:country" tag for a drop-down list. Do you know any taglib, that
>> offers that functionality? The alternative would be to implement it
>> myself.
>> My safest approach would be to copy AppFuse's country tag. The question
>> is
>> what files have to be considered? Here is a list of what I think might be
>> relevant. Any comments? (* sorry for this try-and-error approach; I have
>> no
>> experience with implementing JSP tags yet *)
>>
>>
>> To introduce the tag:
>> 1. Copy CountryTag and replace handling of countries by handing of
>> languages.
>>    -> use methods in java.util.Locale
>> 2. I'm not quite sure how much affected LocaleFilter is as the country
>> might
>> differ from
>>    a preferred language.
>> 3. adapt appfuse.tld. Or some other tld if you decide to put it somewhere
>> else.
>> 4. adapt validation.xml
>>
>> To run application:
>> 5. User POJO will be extended by a language property
>> 6. ApplicationResources_<locale> need new phrases.
>> 7. adapt JSP pages signup/userForm
>>
>> Tests
>> 8. default-data, sample-data, web-tests need updates
>> 9. adapt SignupControllerTest
>> 10. adapt UserManager(Impl)Test.properties
>>
>> Do you think, I am on the right track?
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Implementing-a-language-JSP-tag-for-drop-down-list-tp18462582s2369p18462582.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Implementing-a-language-JSP-tag-for-drop-down-list-tp18462582s2369p18480514.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to