Radu Mircea

Ranch Hand
+ Follow
since Jun 14, 2009
Merit badge: grant badges
For More
Romania
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Radu Mircea

Hi ,

I want to trigger a new click event (on the same button) after a button from a modal panel was clicked. Something like click to simulate double click on that button.

I used this code:



On Firefox this code is working so, if i click on "myButton" than another click event is triggered, but in IE this is not happing, please if you have an idea how to solve this, give me a hand...

Thanks,
Radu
13 years ago
JSF
I believe that Germany will win ;).
13 years ago
Hi ,

Does somebody knows which is the last version of of MyEclipse which uses Maven 2 ?

Actually i am using MyEclipse 8.5 but it has some conflicts with Maven 2 which is used in our projects (i heard that MyEclipse 8.5 uses Maven 3 so this could be a reason).

I am interested in changing this version of MyEclipse to the last one which uses Maven 2.

I am also looking on their web site but i could not figured out about this.

Please if you have an idea about this, give me a hand.

Thanks,
Radu
13 years ago
Hi ,

Thanks for replays.

@Bear ok, next time i will take care about it.

@Suraj your example was very helpful ;), also i should say you that you can use a css class as selector, so there are no errors in my script .

I solved this issue.
Hi ,

I am trying to change the value of an input depending on selection from a combo box, so is user selects "Yes" from combo box the input should contain "test" value and than
if user selects "No" the input should be empty , "test" value remove from it.

I tryed to do it runing the following code:


Running it in this version the javascript error "Object doesn't support this property or method" still occurs.(when i change selection in combo box)

After removing

if ($(this).val() == true)

condtion and additionals { } the first javascript error is gone but another is raised saying "null is 'null' or not an object", when i change selection in combo box.

I am not sure if only rich faces jars (3.3.2) had support for this jQuery implementatios like using "$" and other methods (may be some jQuery libraries are nedded), this could be one reason why this is not working in my opinion.

Please, any idea about how to implement this behavior are welcomed.

Regards,
Radu
Sorry , for me is clear that i don't understand what you want.
13 years ago
JSF
Yeap, after making css changes the browser must be refreshed ,so that new styles may be loaded.
13 years ago
JSF
Why you don't add <f:selectItem itemValue="" /> to your item's list having something like this:

<rich:comboBox required="false" value="#{searchController.sessionData.unionSearchCrit}">
<f:selectItem itemValue="" />
<f:selectItem itemValue="Oregon" />
<f:selectItem itemValue="Pennsylvania" />
<f:selectItem itemValue="Rhode Island" />
<f:selectItem itemValue="South Carolina" />
</rich:comboBox>

Any way rich:comboBox does not recognize itemLabel property so when user chooses itemValue="" empty string will be stored in your bean. Because of this (not recognize itemLabel property ) some converter issues can occur, but this is another discussion .

Please let me know if i understood right your need.

Regards,
Radu
13 years ago
JSF
Hi ,

Please could you be more specific ?

Radu
13 years ago
JSF
Hi ,

h:panelGrid has columnClasses attribute which represents css class for coresponding column, for instance you have

<h:panelGrid columns=4 columnClasses="styleForCol1,styleForCol2.styleForCol3,styleForCol14" ... />

so try something like this:

<h:panelGrid columns=4 columnClasses="label,label,label,label" ... /> supposing that you want to have label style for all your 4 controls from panelGrid.

Regards,
Radu
13 years ago
JSF
May be is time to update application's jars .
13 years ago
JSF
Hi ,

The issue is referring to the fact that in IE an option item appears catted if its width is higher than select's width.

For example:
<select>
<option>First value </option>
<option> My long option which has a higher width than select's one and because of that will occur as catted </option>
<option>Another value</option>
</select>

I read on a forum that this issue was solved in IE8 Release Candidate 1 , after reading those posts i seek more information about that but i could not find.

I have this issue for a long time... for lower versions than IE8 RC1 (i suppose that this issue was solved in this version even if i am not sure of that) there are some workarounds, to have the same behavior like in FireFox for instance ?

Thanks,
Radu


Hi ,

I want that onchange event for an inplaceSelect control to call some javascript , this is an example:

<rich:inplaceSelect id="myId" value="#{myBean.value}" editEvent="onclick" showControls="false" openOnEdit="true"
onchange="alert('test');" >
<f:selectItems value="#{values}" />
</rich:inplaceSelect>
<h:graphicImage id="imgId" value="#{myImg}" onclick="#{rich:component('myId')}.edit()">

If the inplace control's content was click, the control goes to edit mode and the event is called when an item from inplace select was changed and the alert is shown, but if i open the inplace select control when i click on image it goes to edit mode, and than select an item from inplace select the event is not called , and no alert is shown , in this case i also want to see the alert like in previous one.

How can i do this ? Is there a way ?

Thanks,
Radu
13 years ago
JSF
Welcome Bart Kummel ,

I took a look at online chapter and i was really impressed about it.
Congratulations for this book !

Best regards,
Radu
13 years ago
JSF