Marius Cloete

Greenhorn
+ Follow
since Apr 14, 2005
Merit badge: grant badges
For More
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 Marius Cloete

Hi Savio,

I am not sure if this is the best way do it, but it is wat I used.
The Validation Class is a Class that I created to do all my validation.



Hope this helps
Marius

[ February 13, 2006: Message edited by: Marius Cloete ]

[ February 13, 2006: Message edited by: Marius Cloete ]
[ February 13, 2006: Message edited by: Marius Cloete ]
18 years ago
JSF
Hi There, I hope this helps you in some way...

set the target of your form to a frame that does not exist this will open a new window with that name.



happy coding
18 years ago
JSF
Hi Ritika,

I am using RAD 6 (IBM Rational Application Developer) works great its basically WSAD 6.

Some places to visit :

http://www.jspolympus.com/JSF/JavaServerFaces.jsp
http://www-128.ibm.com/developerworks/websphere/library/jsf/catalog/WebContent/index.html

hope it goes well...
18 years ago
JSF
Hi Kurt,

Thx that did work but it feels like I "hacked" the system, I am sure there must be/should be a better/standard way of doing this.

But till then thank you Kurt this will do it.

This is wat I added to java page code...


the rest is standard

Thanks and cheerz
18 years ago
JSF
Thx Kurt,

Do you mean I need to add an int[] rowNumber to the bean thats holds the identifier and then access it this way #{arrayVar.rowNumber}?

I'll try that.
18 years ago
JSF
Hi all,

When you look at the id of the row in the page source of your browser window
(id="form1:table1:1:cell1") I am interested in the single digit "1" that
represents the current row.That row value is also the index number of the
array of elements that was used in the data table. How will I be able to get
that value back so I can use it in my code?

Any ideas will be much appreciated, thx.
[ June 09, 2005: Message edited by: Gregg Bolinger ]
18 years ago
JSF
hi I am not sure about JBuilder, but why not try this..

Sun Java Studio Creator
http://developers.sun.com/prodtech/javatools/jscreator/index.jsp

"Get the JavaServer Faces reference implementation and the Sun Java System Application Server Platform Edition 8 with the first 100% Java standard visual development tool -- Sun Java Studio Creator --all in one easy to install bundle."

I haven't tried it my self but I am sure its going to keep allot of hair on your head
18 years ago
JSF
hi hope this works

In your bean initialize var "msg" to private String msg = "";
18 years ago
JSF
Try this...


just change onklick back to "onclick"

hope that helps
[ May 25, 2005: Message edited by: Marius Cloete ]
18 years ago
JSF
Hi this might not be the best way of doing it but here goes...

<SCRIPT type="text/javascript">

function func_1(AgentId) {

document.getElementById("form1:text1").value = AgentId;
}
</SCRIPT>


<h:form styleClass="form" id="form1">
<!-- pc_Agent.agents returns a array of agents -->
<h:dataTable id="table1" value="#{pc_Agent.agents}"
var="varagents"border="0"
style="background-color:#efebef;font-weight:bold">
<h:column id="column1">
<hx:outputLinkEx
styleClass="outputLinkEx"
id="linkEx1"
onklick="return func_1(#{varagents.id});"
value="#">
<h:outputText id="text2" styleClass="outputText"
value="#{varagents.id}"></h:outputText>
</hx:outputLinkEx>
</h:column>
</h:dataTable>

<h:outputText styleClass="outputText" id="text1" value="#{param.slectedAgentID}"></h:outputText>
</form>
this way you send the id to the next page as a parameter.

Hope this helped or give you new ideas
[ May 19, 2005: Message edited by: Marius Cloete ]
18 years ago
JSF