Thank you Lucasz for looking into this. Yes I Have all the setter and getter
for all the properties. Its working now. I just need to give the whole path of
the property in the s:select value attribute.
Like value="%{diseasetracking.diagnosisDTO.primaryDiagnosis}"
Because I have the property in
2017-04-03 16:04 GMT+02:00 Kiran Kongala :
>
> listKey=*"dstLookupTypeId"*
>
Do you have a getter for this value? getDstLookupTypeId() ?
> listValue=*"lookupValue"*
>
Same here, do you have a getter? getLookupValue() ?
Regards
--
Łukasz
+ 48 606 323 122
Hi Lukasz,
Thank you for helping. I am new to Struts2. What are the other attributes I
need to use if not listkey and listvalue.
In my example, I defined the select as below with name as
diagnosisDTO.primaryDiagnosis and list as primaryDiagnosisTypes which is an
object which has dstLookupTypeID
2017-04-02 22:58 GMT+02:00 Kiran Kongala :
> Hi Lulasz,
>
>
> *I am not comparing the same objects.I am trying to compare the String to
> a constant String.Still do I need to override the equals and hashCode
> methods.*
>
> *I added a tag in the jsp and I see the
Hi Paul,
I added as you said in the jsp with value.
And below is the view source code for the drop down. But I don't see the
536 option as selected.
I can see that value in the value stack as shown in the previous
email.
Please Select
Chronic Hepatitis C
Chronic Hepatitis
Hi Lulasz,
*I am not comparing the same objects.I am trying to compare the String to a
constant String.Still do I need to override the equals and hashCode
methods.*
*I added a tag in the jsp and I see the values.But the value
doesnt set the value back to the s:select drop down list.*
*The
I notice that you are using the # notation to access the property. Does it
work without it? It seems like something is not available on the action. You
could add value="#diagnosisDTO.primaryDiagnosis" to your select and it will
pull from the value stack just like the property did instead of
Did you implement hashCode and equals? You are comparing objects not Strings
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2017-04-02 5:55 GMT+02:00 Kiran Kongala :
> Hi,
>
> Before calling the return "success" in the action method I added couple of
>
Hi,
Before calling the return "success" in the action method I added couple of
println statements and I am seeing the data for the dropdown
and below are the values
diseasetracking: DiseaseTracking: dstId = 2048
DstCodeId = HPC
paID = 2
memberID = 100
memberIdentTypeID = 1
memberAddressID =
What happens when you use a s:property to evaluate
diagnosisDTO.primaryDiagnosis? If you do not get a value, then check to make
sure the path is right or that something is not wrong in your action that is
populating it. Also verify that the key property in your list is the same type
as the
10 matches
Mail list logo