Re: form rendering problem

2006-11-13 Thread David Geary

David D. gives some good advice, but the standard JSF way of doing this,
without having to drag Tomahawk into the mix is to use . btw,
you don't need empty bodies in your JSF HTML tags.


david

2006/11/13, david.delbecq <[EMAIL PROTECTED]>:


Hi Jonathan,

Don't mix JSF component and html tags in your JSP. The whole JSF form
tree is rendered at the position of the  and the html tags are
rendered after the form tag. If you want to include html tags inside
your jsf tree, use the  component around html sections or
use the t:tag of tomahawk. The later one is cleaner in terms of
hierarchy in the jsp, but might be difficult to read if you go too deep.

In your case (rendering a table) there is already a grid component in
tomahawk that does it :)


btw, attachements are stripped away from mailing list. If you want to
provide screenshots use something like imageshak.

Jonathan Smith a écrit :
> ok using this code
>
> <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
> pageEncoding="ISO-8859-1"%>
> 
>
>
> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
> <%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
>
>
>
> 
> 
> 
>
> 
> 
> 
>  />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  style="margin-top:5%;"
> value="Add Contact" action="addcontact">
> 
>
> the form gets rendered wrong. please see attachment for a picture.
>
> _
> Stay in touch with old friends and meet new ones with Windows Live
> Spaces
>
http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
>




Re: form rendering problem

2006-11-13 Thread david.delbecq
Hi Jonathan,

Don't mix JSF component and html tags in your JSP. The whole JSF form
tree is rendered at the position of the  and the html tags are
rendered after the form tag. If you want to include html tags inside
your jsf tree, use the  component around html sections or
use the t:tag of tomahawk. The later one is cleaner in terms of
hierarchy in the jsp, but might be difficult to read if you go too deep.

In your case (rendering a table) there is already a grid component in
tomahawk that does it :)


btw, attachements are stripped away from mailing list. If you want to
provide screenshots use something like imageshak.

Jonathan Smith a écrit :
> ok using this code
>
> <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
> pageEncoding="ISO-8859-1"%>
> 
>
>
> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
> <%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
>
>
>
> 
> 
> 
>
> 
> 
> 
>  />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  style="margin-top:5%;"
> value="Add Contact" action="addcontact">
> 
>
> the form gets rendered wrong. please see attachment for a picture.
>
> _
> Stay in touch with old friends and meet new ones with Windows Live
> Spaces
> http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
>



form rendering problem

2006-11-13 Thread Jonathan Smith

ok using this code

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>



<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>









































the form gets rendered wrong. please see attachment for a picture.

_
Stay in touch with old friends and meet new ones with Windows Live Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us