You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dave <ja...@yahoo.com> on 2007/07/04 07:29:43 UTC

how to prevent hidden autoScroll from affecting page look

There are many generated:
  <input type="hidden" name="autoScroll" />
   
  that affects the page looks.
   
  In html, there is a line break around them. So there is an additional space on page.
   
  How to prevent this from happening?
  Thanks
  Dave

 
---------------------------------
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.

Re: how to prevent hidden autoScroll from affecting page look

Posted by Dave <ja...@yahoo.com>.
Hi David,
   
  Thanks for your reply.  I just used <h:form>.  The additional space is between "GO" and  "|".
  I do not know why (<input hidden ...) is there.   If you see anything wrong, please let me know.
  Thanks!
   
  <h:form>
  
  
  <h:outputLink value="/">
       <h:outputText value="home"/>
  </h:outputLink>
   
  
  <h:panelGroup rendered="#{bean.isFoo}">
      <f:verbatim>|</f:verbatim>
      <h:commandLink action="#{bean.go}"  value="Go"/>
   
  
      <f:verbatim>|</f:verbatim>
      <h:commandLink action="#{bean.login}"   value="login" /> 
  
  </h:panelGroup> 
   
  </h:form>
  

David Delbecq <de...@oma.be> wrote:
  Hi,

I took a look at data scroller (as am assuming this is the component you
are using)
In source of html generated from example (at
http://www.irian.at/myfaces/dataScroller.jsf) , i see this

                  lots of javascript stripped here...
//-->  
 [input] 
  

etc.

indeed there are line feed around the input type, but it appear before a
, and as such shouldn't generate extra space. Perhaps it's your css
stylesheet that apply margins or padding to  [input]  tags?

Check this in your browser,




  
  
      blabla

  
      blabla
 [input] 









If both tables show same width, you should start to investigate css
rules. If not, then i think you need to have component patched to remove
those linefeeds :)





En l'instant précis du 04/07/07 07:29, Dave s'exprimait en ces termes:
> There are many generated:
>  [input] 
> 
> that affects the page looks.
> 
> In html, there is a line break around them. So there is an additional
> space on page.
> 
> How to prevent this from happening?
> Thanks
> Dave
>
> ------------------------------------------------------------------------
> Food fight?
> 
> Enjoy some healthy debate
> in the Yahoo! Answers Food & Drink Q&A.
> 


  

       
---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. 

Re: how to prevent hidden autoScroll from affecting page look

Posted by David Delbecq <de...@oma.be>.
Hi,

I took a look at data scroller (as am assuming this is the component you
are using)
In source of html generated from example (at
http://www.irian.at/myfaces/dataScroller.jsf) , i see this

<table class="scrollerTable2"><tbody><tr><td class="standardTable_ColumnCentered"><table class="scroller"><tr><td><script type="text/javascript"><!--
lots of javascript stripped here...
//--></script><a href="#" onclick="(stripped)"><img src="images/arrow-first.gif" border="1" /></a>
<input type="hidden" name="autoScroll" />
</td><td><a href="#" onclick="(stripped)"><img src="images/arrow-fr.gif" border="1" /></a></td>

etc.

indeed there are line feed around the input type, but it appear before a
</td>, and as such shouldn't generate extra space. Perhaps it's your css
stylesheet that apply margins or padding to <input> tags?

Check this in your browser,
<html>
<head>
<title>test</title>
</head>
<form>
<table border="1">
        <tr><td>blabla</td></tr>
</table>
<table border="1">
        <tr><td>blabla
<input type="hidden" name="autoScroll" />
</td></tr>
</table>
</form>
<body>

</body>
</html>


If both tables show same width, you should start to investigate css
rules. If not, then i think you need to have component patched to remove
those linefeeds :)





En l'instant précis du 04/07/07 07:29, Dave s'exprimait en ces termes:
> There are many generated:
> <input type="hidden" name="autoScroll" />
>  
> that affects the page looks.
>  
> In html, there is a line break around them. So there is an additional
> space on page.
>  
> How to prevent this from happening?
> Thanks
> Dave
>
> ------------------------------------------------------------------------
> Food fight?
> <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367>
> Enjoy some healthy debate
> in the Yahoo! Answers Food & Drink Q&A.
> <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367>



Re: how to make 'OK' and 'CANCEL' button multilingual.

Posted by Andrew Robinson <an...@gmail.com>.
Write your own confirm box using a modalDialog control would be my suggestion.

Otherwise, lookup the documentation for the browsers you want to support.

On 7/4/07, Arvind Pandey <ar...@datamatics.com> wrote:
>
>
> Hi all!
>
>
> My requirement is to make 'OK' and 'CANCEL' button of confirm dialog box of
> java script multilingual.
> Is it possible to do like this..if yes pls help me..
>
> With warm regards...
> Arvind Pandey
>
>
>
> Disclaimer: The information contained in this e-mail and attachments if any are privileged and confidential and are intended for the individual(s) or entity(ies) named in this e-mail. If the reader or recipient is not the intended recipient, or employee or agent responsible for delivering to the intended recipient, you are hereby notified that dissemination, distribution or copying of this communication or attachments thereof is strictly prohibited. IF YOU RECEIVE this communication in error, please immediately notify the sender and return the original message.
>

how to make 'OK' and 'CANCEL' button multilingual.

Posted by Arvind Pandey <ar...@datamatics.com>.

Hi all!


My requirement is to make 'OK' and 'CANCEL' button of confirm dialog box of
java script multilingual.
Is it possible to do like this..if yes pls help me..

With warm regards...
Arvind Pandey



Disclaimer: The information contained in this e-mail and attachments if any are privileged and confidential and are intended for the individual(s) or entity(ies) named in this e-mail. If the reader or recipient is not the intended recipient, or employee or agent responsible for delivering to the intended recipient, you are hereby notified that dissemination, distribution or copying of this communication or attachments thereof is strictly prohibited. IF YOU RECEIVE this communication in error, please immediately notify the sender and return the original message.

RE: how to access the properties files from java script

Posted by Arvind Pandey <ar...@datamatics.com>.
Hi David!

      Thank you for giving this noce solution. It is working fine.
But now the requirement is to make 'OK' and 'CANCEL' button multilingual.
Is it possible to do like this..if yes pls help me..

With warm regards...
Arvind Pandey



-----Original Message-----
From: David Delbecq [mailto:delbd+jakarta@oma.be]
Sent: Wednesday, July 04, 2007 1:11 PM
To: MyFaces Discussion
Subject: Re: how to access the properties files from java script


Simple example working for most general conditions

<h:commandButton
    value="#{someBundle['ok.value']}"
    action="..some action to call here.."
    onclick="if (!confirm(#{someBundle['ok.confirm']})) return false;" />

Other possible simple suggestion:

<script language="javascript">
    var myMessage = "<h:outputText value="#{someBundle['ok.confirm']}"/>";
</script>

PS: it's common practice on mailing list to no use the 'reply' button on
a message to create a new subject of discussion. It makes the other
discussion more difficult to read for people, and for you it reduces the
probability someone who can answer you sees your question. Instead,
create new message when you are not replying to someone.

Regards,
David Delbecq

En l'instant précis du 04/07/07 07:59, Arvind Pandey s'exprimait en ces
termes:
>
>
>     Hi all,
>
>               I am using myfaces 1.1.5 .  We are showing java script
>     confirmation dialog box  .
>     But We need to show the confirmation message in multilingual format.
>     Is there any way to read the property file so that we can show the
>     message in multilingual?
>     Or is there any other soln for this?
>     Any help will be appreciated..........
>
>     regards....
>     Arvind pandey
>
>
>
>
>
>
> Disclaimer: The information contained in this e-mail and attachments
> if any are privileged and confidential and are intended for the
> individual(s) or entity(ies) named in this e-mail. If the reader or
> recipient is not the intended recipient, or employee or agent
> responsible for delivering to the intended recipient, you are hereby
> notified that dissemination, distribution or copying of this
> communication or attachments thereof is strictly prohibited. IF YOU
> RECEIVE this communication in error, please immediately notify the
> sender and return the original message.
>
>


Disclaimer: The information contained in this e-mail and attachments if any are privileged and confidential and are intended for the individual(s) or entity(ies) named in this e-mail. If the reader or recipient is not the intended recipient, or employee or agent responsible for delivering to the intended recipient, you are hereby notified that dissemination, distribution or copying of this communication or attachments thereof is strictly prohibited. IF YOU RECEIVE this communication in error, please immediately notify the sender and return the original message.

Re: how to access the properties files from java script

Posted by David Delbecq <de...@oma.be>.
Simple example working for most general conditions

<h:commandButton
    value="#{someBundle['ok.value']}"
    action="..some action to call here.."
    onclick="if (!confirm(#{someBundle['ok.confirm']})) return false;" />

Other possible simple suggestion:

<script language="javascript">
    var myMessage = "<h:outputText value="#{someBundle['ok.confirm']}"/>";
</script>

PS: it's common practice on mailing list to no use the 'reply' button on
a message to create a new subject of discussion. It makes the other
discussion more difficult to read for people, and for you it reduces the
probability someone who can answer you sees your question. Instead,
create new message when you are not replying to someone.

Regards,
David Delbecq

En l'instant précis du 04/07/07 07:59, Arvind Pandey s'exprimait en ces
termes:
>  
>
>     Hi all,
>      
>               I am using myfaces 1.1.5 .  We are showing java script
>     confirmation dialog box  .
>     But We need to show the confirmation message in multilingual format.
>     Is there any way to read the property file so that we can show the
>     message in multilingual?
>     Or is there any other soln for this?
>     Any help will be appreciated..........
>      
>     regards....
>     Arvind pandey
>
>
>  
>
>
>
> Disclaimer: The information contained in this e-mail and attachments
> if any are privileged and confidential and are intended for the
> individual(s) or entity(ies) named in this e-mail. If the reader or
> recipient is not the intended recipient, or employee or agent
> responsible for delivering to the intended recipient, you are hereby
> notified that dissemination, distribution or copying of this
> communication or attachments thereof is strictly prohibited. IF YOU
> RECEIVE this communication in error, please immediately notify the
> sender and return the original message.
>
>


how to access the properties files from java script

Posted by Arvind Pandey <ar...@datamatics.com>.
  Hi all,

            I am using myfaces 1.1.5 .  We are showing java script
confirmation dialog box  .
  But We need to show the confirmation message in multilingual format.
  Is there any way to read the property file so that we can show the message
in multilingual?
  Or is there any other soln for this?
  Any help will be appreciated..........

  regards....
  Arvind pandey

Disclaimer: The information contained in this e-mail and attachments if any are privileged and confidential and are intended for the individual(s) or entity(ies) named in this e-mail. If the reader or recipient is not the intended recipient, or employee or agent responsible for delivering to the intended recipient, you are hereby notified that dissemination, distribution or copying of this communication or attachments thereof is strictly prohibited. IF YOU RECEIVE this communication in error, please immediately notify the sender and return the original message.