thanks guys, thats the point. =)

David Michael Q. Nelson wrote:
> 
> It seems that your manager (personManager) as been declared as
> GenericManager, and as it doesn't have a getAllGender method it´s throwing
> this exception. You should write an interface ( PersonManager ) that
> extends
> GenericManager, and implement it in your PersonManagerImpl. Then change
> you
> "GenericManager personManager" to "PersonManager personManager".
> 
> []´s
> 
> On 6/4/07, ganine <[EMAIL PROTECTED]> wrote:
>>
>>
>> I'm trying insert a field gender in my personForm, but I got a error
>> after
>> insert the field and the methods..
>>
>> personForm.jsp
>>
>>     <s:set name="genderMap" value="genderMap" scope="request" />
>>     <s:radio list="genderMap" key="person.gender" required="true" />
>>
>> PersonAction
>>
>>     private Map<Gender, String> genderMap;
>>
>>     public Map getGenderMap(){
>>         return genderMap;
>>     }
>>
>>     public String edit() {
>>         genderMap = personManager.getAllGender();
>>     ...
>>     }
>>
>> PersonManagerImpl
>>
>>     public Map<Gender, String> getAllGender(){
>>         return personDao.getAllGender();
>>     }
>>
>> PersonDaoHibernate
>>
>>     public Map<Gender, String> getAllGender(){
>>         HashMap<Gender, String> genderMap = new HashMap<Gender,
>> String>();
>>         genderMap.put(Gender.MALE, "Male");
>>         genderMap.put(Gender.FEMALE, "Female");
>>         return genderMap;
>>     }
>>
>> Gender
>>
>>     public enum Gender {
>>         MALE, FEMALE
>>     }
>>
>>
>> Error message
>>
>>     C:\Documents and Settings\admin\workspace\myproject\src\main\java\**\
>>     webapp\action\PersonAction.java:[56,25] cannot find symbol
>>     symbol  : method getAllGender()
>>     location: interface
>> org.appfuse.service.GenericManager<**.model.Person,java.lang.Long>
>>
>> The line PersonAction.java:[56,25]
>>
>>     genderMap = personManager.getAllGender();
>>
>>
>> I've checked all the imports, and names, but didnt work. Can somebody
>> tell
>> me whats is wrong with my code? or how I can improve it?
>>
>>
>> Thanks,
>> Marcos
>> --
>> View this message in context:
>> http://www.nabble.com/Appfuse2-m5-Struts2-Radio-tf3865566s2369.html#a10950932
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Att,
> David Michael <[EMAIL PROTECTED]>
> +55 31 88835540
> +55 31 34214887
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Appfuse2-m5-Struts2-Radio-tf3865566s2369.html#a10954218
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