
|
Aligning Calendar Components With Other Fields
Hello, I am working on a visual web application. I don't think I'm doing anything too esoteric, but I am having difficulty aligning the Woodstock calendar component correctly with other fields. In my JSP page, I have a grid panel with three colums, one for labels, one for input fields and one for messages, fairly basic, standard stuff.
I added a couple of styles to the generated stylesheet.css file to right align and left align labels and input fields, respectively: .leftAlign{ text-align:left; } .rightAlign{ text-align:right;
} Then used these styles as the value of "columnClasses" in my grid panel: <h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600"> Then I placed a label, an input field and a message component to each row in the grid: <h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600"> <webuijsf:label for="firstName" id="label1" text="First Name:"/>
<webuijsf:textField id="firstName"/> <webuijsf:message for="firstName" id="message1" showDetail="false" showSummary="true"/>
<webuijsf:label for="middleName" id="label2" text="Middle Name:"/> <webuijsf:textField id="middleName"/> <webuijsf:message for="middleName" id="message2" showDetail="false" showSummary="true"/>
<webuijsf:label for="lastName" id="label3" text="Last Name:"/> <webuijsf:textField id="lastName"/> <webuijsf:message for="lastName" id="message3" showDetail="false" showSummary="true"/>
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
</h:panelGrid> The three text input fields align properly, but the calendar component is slightly indented, I took some screenshots of the design page and the output (attached)
Any idea of how to make the calendar component align properly with other input fields? Thanks, David -- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
|

|
Re: Aligning Calendar Components With Other Fields
I dont know if this is it, but you are missing the "for" attribute on the last label
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
On Mon, Apr 7, 2008 at 2:20 PM, David Heffelfinger < dheffelfinger@...> wrote:
Hello,
I am working on a visual web application. I don't think I'm doing anything too esoteric, but I am having difficulty aligning the Woodstock calendar component correctly with other fields.
In my JSP page, I have a grid panel with three colums, one for labels, one for input fields and one for messages, fairly basic, standard stuff.
I added a couple of styles to the generated stylesheet.css file to right align and left align labels and input fields, respectively:
.leftAlign{ text-align:left; }
.rightAlign{ text-align:right; }
Then used these styles as the value of "columnClasses" in my grid panel:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600">
Then I placed a label, an input field and a message component to each row in the grid:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600"> <webuijsf:label for="firstName" id="label1" text="First Name:"/>
<webuijsf:textField id="firstName"/> <webuijsf:message for="firstName" id="message1" showDetail="false" showSummary="true"/>
<webuijsf:label for="middleName" id="label2" text="Middle Name:"/> <webuijsf:textField id="middleName"/> <webuijsf:message for="middleName" id="message2" showDetail="false" showSummary="true"/>
<webuijsf:label for="lastName" id="label3" text="Last Name:"/> <webuijsf:textField id="lastName"/> <webuijsf:message for="lastName" id="message3" showDetail="false" showSummary="true"/>
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
</h:panelGrid>
The three text input fields align properly, but the calendar component is slightly indented, I took some screenshots of the design page and the output (attached)
Any idea of how to make the calendar component align properly with other input fields?
Thanks, David
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva
|

|
Re: Aligning Calendar Components With Other Fields
Daniel, I added the missing "for" attribute, unfortunately it didn't make a difference. David On Mon, Apr 7, 2008 at 1:40 PM, Daniel Silva < ddso.01@...> wrote:
I dont know if this is it, but you are missing the "for" attribute on the last label
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
On Mon, Apr 7, 2008 at 2:20 PM, David Heffelfinger < dheffelfinger@...> wrote:
Hello,
I am working on a visual web application. I don't think I'm doing anything too esoteric, but I am having difficulty aligning the Woodstock calendar component correctly with other fields.
In my JSP page, I have a grid panel with three colums, one for labels, one for input fields and one for messages, fairly basic, standard stuff.
I added a couple of styles to the generated stylesheet.css file to right align and left align labels and input fields, respectively:
.leftAlign{ text-align:left; }
.rightAlign{ text-align:right; }
Then used these styles as the value of "columnClasses" in my grid panel:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600">
Then I placed a label, an input field and a message component to each row in the grid:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600"> <webuijsf:label for="firstName" id="label1" text="First Name:"/>
<webuijsf:textField id="firstName"/> <webuijsf:message for="firstName" id="message1" showDetail="false" showSummary="true"/>
<webuijsf:label for="middleName" id="label2" text="Middle Name:"/> <webuijsf:textField id="middleName"/> <webuijsf:message for="middleName" id="message2" showDetail="false" showSummary="true"/>
<webuijsf:label for="lastName" id="label3" text="Last Name:"/> <webuijsf:textField id="lastName"/> <webuijsf:message for="lastName" id="message3" showDetail="false" showSummary="true"/>
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
</h:panelGrid>
The three text input fields align properly, but the calendar component is slightly indented, I took some screenshots of the design page and the output (attached)
Any idea of how to make the calendar component align properly with other input fields?
Thanks, David
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server
http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
|

|
Re: Aligning Calendar Components With Other Fields
Did you tested it using IE and another browser? IE does follow W3C standards very well. So whenever I try to align something, I always set padding and margin (or margin-top and margin-bottom), in the stylesheet, and put it as a class of a block element (like <p>). Inside the block element, you can put what you want.
<p sytle="text-align:left;margin-top:0px;margin-bottom:0px;padding:0px">
<label .../>
</p>
You can set display : block instead, as a class of other type of element, but I've this not working on IE.
On Mon, Apr 7, 2008 at 4:46 PM, David Heffelfinger < dheffelfinger@...> wrote:
Daniel,
I added the missing "for" attribute, unfortunately it didn't make a difference.
David
On Mon, Apr 7, 2008 at 1:40 PM, Daniel Silva < ddso.01@...> wrote:
I dont know if this is it, but you are missing the "for" attribute on the last label
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
On Mon, Apr 7, 2008 at 2:20 PM, David Heffelfinger < dheffelfinger@...> wrote:
Hello,
I am working on a visual web application. I don't think I'm doing anything too esoteric, but I am having difficulty aligning the Woodstock calendar component correctly with other fields.
In my JSP page, I have a grid panel with three colums, one for labels, one for input fields and one for messages, fairly basic, standard stuff.
I added a couple of styles to the generated stylesheet.css file to right align and left align labels and input fields, respectively:
.leftAlign{ text-align:left; }
.rightAlign{ text-align:right; }
Then used these styles as the value of "columnClasses" in my grid panel:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600">
Then I placed a label, an input field and a message component to each row in the grid:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600"> <webuijsf:label for="firstName" id="label1" text="First Name:"/>
<webuijsf:textField id="firstName"/> <webuijsf:message for="firstName" id="message1" showDetail="false" showSummary="true"/>
<webuijsf:label for="middleName" id="label2" text="Middle Name:"/> <webuijsf:textField id="middleName"/> <webuijsf:message for="middleName" id="message2" showDetail="false" showSummary="true"/>
<webuijsf:label for="lastName" id="label3" text="Last Name:"/> <webuijsf:textField id="lastName"/> <webuijsf:message for="lastName" id="message3" showDetail="false" showSummary="true"/>
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
</h:panelGrid>
The three text input fields align properly, but the calendar component is slightly indented, I took some screenshots of the design page and the output (attached)
Any idea of how to make the calendar component align properly with other input fields?
Thanks, David
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva -- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva
|

|
Re: Aligning Calendar Components With Other Fields
IE does NT follow W3C very well.
On Mon, Apr 7, 2008 at 5:44 PM, Daniel Silva < ddso.01@...> wrote:
Did you tested it using IE and another browser? IE does follow W3C standards very well. So whenever I try to align something, I always set padding and margin (or margin-top and margin-bottom), in the stylesheet, and put it as a class of a block element (like <p>). Inside the block element, you can put what you want.
<p sytle="text-align:left;margin-top:0px;margin-bottom:0px;padding:0px">
<label .../>
</p>
You can set display : block instead, as a class of other type of element, but I've this not working on IE.
On Mon, Apr 7, 2008 at 4:46 PM, David Heffelfinger < dheffelfinger@...> wrote:
Daniel,
I added the missing "for" attribute, unfortunately it didn't make a difference.
David
On Mon, Apr 7, 2008 at 1:40 PM, Daniel Silva < ddso.01@...> wrote:
I dont know if this is it, but you are missing the "for" attribute on the last label
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
On Mon, Apr 7, 2008 at 2:20 PM, David Heffelfinger < dheffelfinger@...> wrote:
Hello,
I am working on a visual web application. I don't think I'm doing anything too esoteric, but I am having difficulty aligning the Woodstock calendar component correctly with other fields.
In my JSP page, I have a grid panel with three colums, one for labels, one for input fields and one for messages, fairly basic, standard stuff.
I added a couple of styles to the generated stylesheet.css file to right align and left align labels and input fields, respectively:
.leftAlign{ text-align:left; }
.rightAlign{ text-align:right; }
Then used these styles as the value of "columnClasses" in my grid panel:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600">
Then I placed a label, an input field and a message component to each row in the grid:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600"> <webuijsf:label for="firstName" id="label1" text="First Name:"/>
<webuijsf:textField id="firstName"/> <webuijsf:message for="firstName" id="message1" showDetail="false" showSummary="true"/>
<webuijsf:label for="middleName" id="label2" text="Middle Name:"/> <webuijsf:textField id="middleName"/> <webuijsf:message for="middleName" id="message2" showDetail="false" showSummary="true"/>
<webuijsf:label for="lastName" id="label3" text="Last Name:"/> <webuijsf:textField id="lastName"/> <webuijsf:message for="lastName" id="message3" showDetail="false" showSummary="true"/>
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
</h:panelGrid>
The three text input fields align properly, but the calendar component is slightly indented, I took some screenshots of the design page and the output (attached)
Any idea of how to make the calendar component align properly with other input fields?
Thanks, David
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva -- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva -- Abraços, Daniel Silva
|

|
Re: Aligning Calendar Components With Other Fields
"IE does follow W3C standards very well."
You're kidding right!!
J.
>>> ddso.01@... 4/7/2008 2:44 PM >>>
Did you tested it using IE and another browser? IE does follow W3C standards
very well. So whenever I try to align something, I always set padding and
margin (or margin-top and margin-bottom), in the stylesheet, and put it as a
class of a block element (like <p>). Inside the block element, you can put
what you want.
<p sytle="text-align:left;margin-top:0px;margin-bottom:0px;padding:0px">
<label .../>
</p>
You can set display : block instead, as a class of other type of element,
but I've this not working on IE.
On Mon, Apr 7, 2008 at 4:46 PM, David Heffelfinger < dheffelfinger@...>
wrote:
> Daniel,
>
> I added the missing "for" attribute, unfortunately it didn't make a
> difference.
>
> David
>
>
> On Mon, Apr 7, 2008 at 1:40 PM, Daniel Silva < ddso.01@...> wrote:
>
> > I dont know if this is it, but you are missing the "for" attribute on
> > the last label
> >
> > <webuijsf:label id="label4" text="Birth Date:"/>
> > <webuijsf:calendar id="calendar1"/>
> > <webuijsf:message for="calendar1" id="message4" showDetail="false"
> > showSummary="true"/>
> >
> > On Mon, Apr 7, 2008 at 2:20 PM, David Heffelfinger <
> > dheffelfinger@...> wrote:
> >
> > > Hello,
> > >
> > > I am working on a visual web application. I don't think I'm doing
> > > anything too esoteric, but I am having difficulty aligning the Woodstock
> > > calendar component correctly with other fields.
> > >
> > > In my JSP page, I have a grid panel with three colums, one for labels,
> > > one for input fields and one for messages, fairly basic, standard stuff.
> > >
> > > I added a couple of styles to the generated stylesheet.css file to
> > > right align and left align labels and input fields, respectively:
> > >
> > > .leftAlign{
> > > text-align:left;
> > > }
> > >
> > > .rightAlign{
> > > text-align:right;
> > > }
> > >
> > > Then used these styles as the value of "columnClasses" in my grid
> > > panel:
> > >
> > > <h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign"
> > > columns="3" id="gridPanel1"
> > > style="left: 24px; top: 96px; position:
> > > absolute" width="600">
> > >
> > > Then I placed a label, an input field and a message component to each
> > > row in the grid:
> > >
> > >
> > > <h:panelGrid border="0"
> > > columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
> > > style="left: 24px; top: 96px; position:
> > > absolute" width="600">
> > > <webuijsf:label for="firstName"
> > > id="label1" text="First Name:"/>
> > > <webuijsf:textField id="firstName"/>
> > > <webuijsf:message for="firstName"
> > > id="message1" showDetail="false" showSummary="true"/>
> > > <webuijsf:label for="middleName"
> > > id="label2" text="Middle Name:"/>
> > > <webuijsf:textField id="middleName"/>
> > > <webuijsf:message for="middleName"
> > > id="message2" showDetail="false" showSummary="true"/>
> > > <webuijsf:label for="lastName" id="label3"
> > > text="Last Name:"/>
> > > <webuijsf:textField id="lastName"/>
> > > <webuijsf:message for="lastName"
> > > id="message3" showDetail="false" showSummary="true"/>
> > > <webuijsf:label id="label4" text="Birth
> > > Date:"/>
> > > <webuijsf:calendar id="calendar1"/>
> > > <webuijsf:message for="calendar1"
> > > id="message4" showDetail="false" showSummary="true"/>
> > > </h:panelGrid>
> > >
> > > The three text input fields align properly, but the calendar component
> > > is slightly indented, I took some screenshots of the design page and the
> > > output (attached)
> > >
> > > Any idea of how to make the calendar component align properly with
> > > other input fields?
> > >
> > > Thanks,
> > > David
> > >
> > >
> > > --
> > > http://ensode.net - A Guide to Java, Linux and Other Technology Topics
> > > http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using
> > > GlassFish Application Server
> > > http://jasperreportsbook.packtpub.com - JasperReports For Java
> > > Developers
> >
> >
> >
> >
> > --
> > Abraços,
> > Daniel Silva
>
>
>
>
> --
> http://ensode.net - A Guide to Java, Linux and Other Technology Topics
> http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using
> GlassFish Application Server
> http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
>
--
Abraços,
Daniel Silva
|

|
Re: Aligning Calendar Components With Other Fields
I didn't test on IE since I'm working on a Linux laptop. The screenshot is from Firefox. David On Mon, Apr 7, 2008 at 4:44 PM, Daniel Silva < ddso.01@...> wrote:
Did you tested it using IE and another browser? IE does follow W3C standards very well. So whenever I try to align something, I always set padding and margin (or margin-top and margin-bottom), in the stylesheet, and put it as a class of a block element (like <p>). Inside the block element, you can put what you want.
<p sytle="text-align:left;margin-top:0px;margin-bottom:0px;padding:0px">
<label .../>
</p>
You can set display : block instead, as a class of other type of element, but I've this not working on IE.
On Mon, Apr 7, 2008 at 4:46 PM, David Heffelfinger < dheffelfinger@...> wrote:
Daniel,
I added the missing "for" attribute, unfortunately it didn't make a difference.
David
On Mon, Apr 7, 2008 at 1:40 PM, Daniel Silva < ddso.01@...> wrote:
I dont know if this is it, but you are missing the "for" attribute on the last label
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
On Mon, Apr 7, 2008 at 2:20 PM, David Heffelfinger < dheffelfinger@...> wrote:
Hello,
I am working on a visual web application. I don't think I'm doing anything too esoteric, but I am having difficulty aligning the Woodstock calendar component correctly with other fields.
In my JSP page, I have a grid panel with three colums, one for labels, one for input fields and one for messages, fairly basic, standard stuff.
I added a couple of styles to the generated stylesheet.css file to right align and left align labels and input fields, respectively:
.leftAlign{ text-align:left; }
.rightAlign{ text-align:right; }
Then used these styles as the value of "columnClasses" in my grid panel:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600">
Then I placed a label, an input field and a message component to each row in the grid:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600"> <webuijsf:label for="firstName" id="label1" text="First Name:"/>
<webuijsf:textField id="firstName"/> <webuijsf:message for="firstName" id="message1" showDetail="false" showSummary="true"/>
<webuijsf:label for="middleName" id="label2" text="Middle Name:"/> <webuijsf:textField id="middleName"/> <webuijsf:message for="middleName" id="message2" showDetail="false" showSummary="true"/>
<webuijsf:label for="lastName" id="label3" text="Last Name:"/> <webuijsf:textField id="lastName"/> <webuijsf:message for="lastName" id="message3" showDetail="false" showSummary="true"/>
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
</h:panelGrid>
The three text input fields align properly, but the calendar component is slightly indented, I took some screenshots of the design page and the output (attached)
Any idea of how to make the calendar component align properly with other input fields?
Thanks, David
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva -- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server
http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
|

|
maven plugin - run custom action

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hello
I am using Maven plugin for NetBeans IDE version 3.0.11.
How can I run custom action on selected class?
The popup menu for running custom actions appear only on a
project, but not on a file.
Thanks
Tomas
Hello,
I am working on a visual web application. I don't think I'm doing anything too
esoteric, but I am having difficulty aligning the Woodstock calendar component
correctly with other fields.
In my JSP page, I have a grid panel with three colums, one for labels, one for
input fields and one for messages, fairly basic, standard stuff.
I added a couple of styles to the generated stylesheet.css file to right align
and left align labels and input fields, respectively:
.leftAlign{
text-align:left;
}
.rightAlign{
text-align:right;
}
Then used these styles as the value of "columnClasses" in my grid
panel:
<h:panelGrid border="0"
columnClasses="rightAlign,leftAlign,leftAlign" columns="3"
id="gridPanel1"
style="left: 24px; top: 96px; position: absolute"
width="600">
Then I placed a label, an input field and a message component to each row in
the grid:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign"
columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute"
width="600">
<webuijsf:label for="firstName" id="label1"
text="First Name:"/>
<webuijsf:textField id="firstName"/>
<webuijsf:message for="firstName" id="message1"
showDetail="false" showSummary="true"/>
<webuijsf:label for="middleName" id="label2"
text="Middle Name:"/>
<webuijsf:textField id="middleName"/>
<webuijsf:message for="middleName" id="message2"
showDetail="false" showSummary="true"/>
<webuijsf:label for="lastName" id="label3"
text="Last Name:"/>
<webuijsf:textField id="lastName"/>
<webuijsf:message for="lastName" id="message3"
showDetail="false" showSummary="true"/>
<webuijsf:label id="label4" text="Birth Date:"/>
<webuijsf:calendar id="calendar1"/>
<webuijsf:message for="calendar1" id="message4"
showDetail="false" showSummary="true"/>
</h:panelGrid>
The three text input fields align properly, but the calendar component is
slightly indented, I took some screenshots of the design page and the output
(attached)
Any idea of how to make the calendar component align properly with other input
fields?
Thanks,
David
--
http://ensode.net - A Guide to Java, Linux and
Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/
- Java EE 5 Development Using GlassFish Application Server
http://jasperreportsbook.packtpub.com
- JasperReports For Java Developers
|

|
Re: maven plugin - run custom action
You cannot, it's not implemented.
you could workaround it eventually. Either hijack the Run File/Debug
File action mappings for that or define a custom action with hardwired
class reference or the file in question in general.
I'm wondering what's the actual usecase, what are you trying to achieve?
Regards
Milos
hradec@... wrote:
>
> Hello
>
>
>
> I am using Maven plugin for NetBeans IDE version 3.0.11.
>
> How can I run custom action on selected class?
>
> The popup menu for running custom actions appear only on a project,
> but not on a file.
>
>
>
> Thanks
>
> Tomas
>
>
>
>
>
|

|
RE: maven plugin - run custom action
Thanks for your quick answer.
We have same test dialogs in src/test/java, but IDE run it like JUnit tests, not like Java application.
Tomas
-----Original Message-----
From: Milos.Kleint@... [mailto: Milos.Kleint@...]
Sent: Tuesday, April 08, 2008 8:05 AM
To: nbusers@...
Subject: Re: [nbusers] maven plugin - run custom action
You cannot, it's not implemented.
you could workaround it eventually. Either hijack the Run File/Debug
File action mappings for that or define a custom action with hardwired
class reference or the file in question in general.
I'm wondering what's the actual usecase, what are you trying to achieve?
Regards
Milos
hradec@... wrote:
>
> Hello
>
>
>
> I am using Maven plugin for NetBeans IDE version 3.0.11.
>
> How can I run custom action on selected class?
>
> The popup menu for running custom actions appear only on a project,
> but not on a file.
>
>
>
> Thanks
>
> Tomas
>
>
>
>
>
|

|
Re: Aligning Calendar Components With Other Fields
I installed Internet Explorer 6 on Linux by using Wine ( http://www.winehq.org/) IEs 4 Linux ( http://www.tatanka.com.br/ies4linux/page/Main_Page).
Surprisingly, the calendar aligns properly in Internet Explorer 6 (see attached screenshot). I guess the question now is: how do I make the Woodstock calendar component align properly with other fields in Firefox?
David On Mon, Apr 7, 2008 at 4:49 PM, Daniel Silva < ddso.01@...> wrote:
IE doesNT follow W3C very well.
On Mon, Apr 7, 2008 at 5:44 PM, Daniel Silva < ddso.01@...> wrote:
Did you tested it using IE and another browser? IE does follow W3C standards very well. So whenever I try to align something, I always set padding and margin (or margin-top and margin-bottom), in the stylesheet, and put it as a class of a block element (like <p>). Inside the block element, you can put what you want.
<p sytle="text-align:left;margin-top:0px;margin-bottom:0px;padding:0px">
<label .../>
</p>
You can set display : block instead, as a class of other type of element, but I've this not working on IE.
On Mon, Apr 7, 2008 at 4:46 PM, David Heffelfinger < dheffelfinger@...> wrote:
Daniel,
I added the missing "for" attribute, unfortunately it didn't make a difference.
David
On Mon, Apr 7, 2008 at 1:40 PM, Daniel Silva < ddso.01@...> wrote:
I dont know if this is it, but you are missing the "for" attribute on the last label
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
On Mon, Apr 7, 2008 at 2:20 PM, David Heffelfinger < dheffelfinger@...> wrote:
Hello,
I am working on a visual web application. I don't think I'm doing anything too esoteric, but I am having difficulty aligning the Woodstock calendar component correctly with other fields.
In my JSP page, I have a grid panel with three colums, one for labels, one for input fields and one for messages, fairly basic, standard stuff.
I added a couple of styles to the generated stylesheet.css file to right align and left align labels and input fields, respectively:
.leftAlign{ text-align:left; }
.rightAlign{ text-align:right; }
Then used these styles as the value of "columnClasses" in my grid panel:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600">
Then I placed a label, an input field and a message component to each row in the grid:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600"> <webuijsf:label for="firstName" id="label1" text="First Name:"/>
<webuijsf:textField id="firstName"/> <webuijsf:message for="firstName" id="message1" showDetail="false" showSummary="true"/>
<webuijsf:label for="middleName" id="label2" text="Middle Name:"/> <webuijsf:textField id="middleName"/> <webuijsf:message for="middleName" id="message2" showDetail="false" showSummary="true"/>
<webuijsf:label for="lastName" id="label3" text="Last Name:"/> <webuijsf:textField id="lastName"/> <webuijsf:message for="lastName" id="message3" showDetail="false" showSummary="true"/>
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
</h:panelGrid>
The three text input fields align properly, but the calendar component is slightly indented, I took some screenshots of the design page and the output (attached)
Any idea of how to make the calendar component align properly with other input fields?
Thanks, David
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva -- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva -- Abraços, Daniel Silva
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server
http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
|

|
Re: Aligning Calendar Components With Other Fields
I looked at the generated HTML source for the calendar component, it looks like this: <span id="_form1:birthDate"><script type="text/javascript">webui.suntheme4_2.widget.common._createWidget('_form1:birthDate',{"valid":true,"visible":true,"autoValidate":false,"autoComplete":false,"size":20,"id":"form1:birthDate","readOnly":false,"style":"margin:0px;padding:0px;","widgetType":"webui.suntheme4_2.widget.calendarField","value":"","required":false,"disabled":false,"calendar":{"id":"form1:birthDate:_datePicker","widgetType":"webui.suntheme4_2.widget.calendar","maxDate":"04/08/2108","minDate":"04/08/1908","dateFormat":"MM/dd/yyyy","todayDateMsg":"Today: Apr 8, 2008"}});</script></span>
Looks like there is a JavaScript script generating the actual HTML for the calendar component at runtime. With the help of Firebug, I was able to see the HTML generated by the script: <td class="leftAlign">
<span id="_form1:birthDate"> <script type="text/javascript"> </script> <table id="form1:birthDate" class="CalRootTbl_sun4" cellspacing="0" cellpadding="0" border="0" dojoattachpoint="domNode" style="margin: 0px; padding: 0px;" widgetid="form1:birthDate">
<tbody> <tr> <td class="hidden_sun4 CalPopFldLbl_sun4" valign="top" dojoattachpoint="labelColumn"> </td> <td valign="top"> </td>
<td id="form1:birthDate_linkContainer" valign="top" dojoattachpoint="linkContainer"> </td> </tr> <tr> <td/> <td class="CalPopTxt_sun4">
<div id="form1:birthDate_pattern" class="inlineFieldHelp_sun4" dojoattachpoint="inlineHelpNode" style="width: 142px;">mm/dd/yyyy</div> </td> </tr> </tbody>
</table> </span> Looks like the problem is with the following line: <td class="hidden_sun4 CalPopFldLbl_sun4" valign="top" dojoattachpoint="labelColumn">
I'm no CSS guru, but I don't think spaces are allowed in CSS class names. Firebug allows me to edit the HTML and rerender "on the fly", if I remove " CalPopFldLbl_sun4" from the above line, so that it looks like this:
<td class="hidden_sun4" valign="top" dojoattachpoint="labelColumn"> Then the calendar aligns properly. Is this a bug? Should I head for IssueZilla?
On Tue, Apr 8, 2008 at 9:26 AM, David Heffelfinger < dheffelfinger@...> wrote:
I installed Internet Explorer 6 on Linux by using Wine (http://www.winehq.org/) IEs 4 Linux (http://www.tatanka.com.br/ies4linux/page/Main_Page).
Surprisingly, the calendar aligns properly in Internet Explorer 6 (see attached screenshot).
I guess the question now is: how do I make the Woodstock calendar component align properly with other fields in Firefox?
DavidOn Mon, Apr 7, 2008 at 4:49 PM, Daniel Silva < ddso.01@...> wrote:
IE doesNT follow W3C very well.
On Mon, Apr 7, 2008 at 5:44 PM, Daniel Silva < ddso.01@...> wrote:
Did you tested it using IE and another browser? IE does follow W3C standards very well. So whenever I try to align something, I always set padding and margin (or margin-top and margin-bottom), in the stylesheet, and put it as a class of a block element (like <p>). Inside the block element, you can put what you want.
<p sytle="text-align:left;margin-top:0px;margin-bottom:0px;padding:0px">
<label .../>
</p>
You can set display : block instead, as a class of other type of element, but I've this not working on IE.
On Mon, Apr 7, 2008 at 4:46 PM, David Heffelfinger < dheffelfinger@...> wrote:
Daniel,
I added the missing "for" attribute, unfortunately it didn't make a difference.
David
On Mon, Apr 7, 2008 at 1:40 PM, Daniel Silva < ddso.01@...> wrote:
I dont know if this is it, but you are missing the "for" attribute on the last label
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
On Mon, Apr 7, 2008 at 2:20 PM, David Heffelfinger < dheffelfinger@...> wrote:
Hello,
I am working on a visual web application. I don't think I'm doing anything too esoteric, but I am having difficulty aligning the Woodstock calendar component correctly with other fields.
In my JSP page, I have a grid panel with three colums, one for labels, one for input fields and one for messages, fairly basic, standard stuff.
I added a couple of styles to the generated stylesheet.css file to right align and left align labels and input fields, respectively:
.leftAlign{ text-align:left; }
.rightAlign{ text-align:right; }
Then used these styles as the value of "columnClasses" in my grid panel:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600">
Then I placed a label, an input field and a message component to each row in the grid:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600"> <webuijsf:label for="firstName" id="label1" text="First Name:"/>
<webuijsf:textField id="firstName"/> <webuijsf:message for="firstName" id="message1" showDetail="false" showSummary="true"/>
<webuijsf:label for="middleName" id="label2" text="Middle Name:"/> <webuijsf:textField id="middleName"/> <webuijsf:message for="middleName" id="message2" showDetail="false" showSummary="true"/>
<webuijsf:label for="lastName" id="label3" text="Last Name:"/> <webuijsf:textField id="lastName"/> <webuijsf:message for="lastName" id="message3" showDetail="false" showSummary="true"/>
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
</h:panelGrid>
The three text input fields align properly, but the calendar component is slightly indented, I took some screenshots of the design page and the output (attached)
Any idea of how to make the calendar component align properly with other input fields?
Thanks, David
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva -- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva -- Abraços, Daniel Silva
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server
http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server
http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
|

|
Re: Aligning Calendar Components With Other Fields
I took a look around the Woodstock IssueZilla, and noticed that this is a known issue: https://woodstock.dev.java.net/issues/show_bug.cgi?id=881
I wanted to add some comments to the issue, which I hope will be useful to the Woodstock team in correcting the issue, however I found no way to add comments to the issue (or to add myself to the CC list for that matter).
Can someone point the appropriate parties to this email thread, I think my comments might be useful to them. Additionally, quite frankly I think this issue should have a higher priority (it is P4 at this time), the procedure I was following is pretty standard (use a grid panel, right align labels, left align fields) and the calendar doesn't align properly.
David On Tue, Apr 8, 2008 at 11:17 AM, David Heffelfinger < dheffelfinger@...> wrote:
I looked at the generated HTML source for the calendar component, it looks like this:
<span id="_form1:birthDate"><script type="text/javascript">webui.suntheme4_2.widget.common._createWidget('_form1:birthDate',{"valid":true,"visible":true,"autoValidate":false,"autoComplete":false,"size":20,"id":"form1:birthDate","readOnly":false,"style":"margin:0px;padding:0px;","widgetType":"webui.suntheme4_2.widget.calendarField","value":"","required":false,"disabled":false,"calendar":{"id":"form1:birthDate:_datePicker","widgetType":"webui.suntheme4_2.widget.calendar","maxDate":"04/08/2108","minDate":"04/08/1908","dateFormat":"MM/dd/yyyy","todayDateMsg":"Today: Apr 8, 2008"}});</script></span>
Looks like there is a JavaScript script generating the actual HTML for the calendar component at runtime.
With the help of Firebug, I was able to see the HTML generated by the script:
<td class="leftAlign">
<span id="_form1:birthDate"> <script type="text/javascript"> </script> <table id="form1:birthDate" class="CalRootTbl_sun4" cellspacing="0" cellpadding="0" border="0" dojoattachpoint="domNode" style="margin: 0px; padding: 0px;" widgetid="form1:birthDate">
<tbody> <tr> <td class="hidden_sun4 CalPopFldLbl_sun4" valign="top" dojoattachpoint="labelColumn"> </td> <td valign="top"> </td>
<td id="form1:birthDate_linkContainer" valign="top" dojoattachpoint="linkContainer"> </td> </tr> <tr> <td/> <td class="CalPopTxt_sun4">
<div id="form1:birthDate_pattern" class="inlineFieldHelp_sun4" dojoattachpoint="inlineHelpNode" style="width: 142px;">mm/dd/yyyy</div> </td> </tr>
</tbody>
</table> </span>
Looks like the problem is with the following line:
<td class="hidden_sun4 CalPopFldLbl_sun4" valign="top" dojoattachpoint="labelColumn">
I'm no CSS guru, but I don't think spaces are allowed in CSS class names. Firebug allows me to edit the HTML and rerender "on the fly", if I remove " CalPopFldLbl_sun4" from the above line, so that it looks like this:
<td class="hidden_sun4" valign="top" dojoattachpoint="labelColumn">
Then the calendar aligns properly.
Is this a bug? Should I head for IssueZilla?
On Tue, Apr 8, 2008 at 9:26 AM, David Heffelfinger < dheffelfinger@...> wrote:
I installed Internet Explorer 6 on Linux by using Wine (http://www.winehq.org/) IEs 4 Linux (http://www.tatanka.com.br/ies4linux/page/Main_Page).
Surprisingly, the calendar aligns properly in Internet Explorer 6 (see attached screenshot).
I guess the question now is: how do I make the Woodstock calendar component align properly with other fields in Firefox?
DavidOn Mon, Apr 7, 2008 at 4:49 PM, Daniel Silva < ddso.01@...> wrote:
IE doesNT follow W3C very well.
On Mon, Apr 7, 2008 at 5:44 PM, Daniel Silva < ddso.01@...> wrote:
Did you tested it using IE and another browser? IE does follow W3C standards very well. So whenever I try to align something, I always set padding and margin (or margin-top and margin-bottom), in the stylesheet, and put it as a class of a block element (like <p>). Inside the block element, you can put what you want.
<p sytle="text-align:left;margin-top:0px;margin-bottom:0px;padding:0px">
<label .../>
</p>
You can set display : block instead, as a class of other type of element, but I've this not working on IE.
On Mon, Apr 7, 2008 at 4:46 PM, David Heffelfinger < dheffelfinger@...> wrote:
Daniel,
I added the missing "for" attribute, unfortunately it didn't make a difference.
David
On Mon, Apr 7, 2008 at 1:40 PM, Daniel Silva < ddso.01@...> wrote:
I dont know if this is it, but you are missing the "for" attribute on the last label
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
On Mon, Apr 7, 2008 at 2:20 PM, David Heffelfinger < dheffelfinger@...> wrote:
Hello,
I am working on a visual web application. I don't think I'm doing anything too esoteric, but I am having difficulty aligning the Woodstock calendar component correctly with other fields.
In my JSP page, I have a grid panel with three colums, one for labels, one for input fields and one for messages, fairly basic, standard stuff.
I added a couple of styles to the generated stylesheet.css file to right align and left align labels and input fields, respectively:
.leftAlign{ text-align:left; }
.rightAlign{ text-align:right; }
Then used these styles as the value of "columnClasses" in my grid panel:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600">
Then I placed a label, an input field and a message component to each row in the grid:
<h:panelGrid border="0" columnClasses="rightAlign,leftAlign,leftAlign" columns="3" id="gridPanel1"
style="left: 24px; top: 96px; position: absolute" width="600"> <webuijsf:label for="firstName" id="label1" text="First Name:"/>
<webuijsf:textField id="firstName"/> <webuijsf:message for="firstName" id="message1" showDetail="false" showSummary="true"/>
<webuijsf:label for="middleName" id="label2" text="Middle Name:"/> <webuijsf:textField id="middleName"/> <webuijsf:message for="middleName" id="message2" showDetail="false" showSummary="true"/>
<webuijsf:label for="lastName" id="label3" text="Last Name:"/> <webuijsf:textField id="lastName"/> <webuijsf:message for="lastName" id="message3" showDetail="false" showSummary="true"/>
<webuijsf:label id="label4" text="Birth Date:"/> <webuijsf:calendar id="calendar1"/> <webuijsf:message for="calendar1" id="message4" showDetail="false" showSummary="true"/>
</h:panelGrid>
The three text input fields align properly, but the calendar component is slightly indented, I took some screenshots of the design page and the output (attached)
Any idea of how to make the calendar component align properly with other input fields?
Thanks, David
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva -- http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- Abraços, Daniel Silva -- Abraços, Daniel Silva
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server
http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server
http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
-- http://ensode.net - A Guide to Java, Linux and Other Technology Topics http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using GlassFish Application Server
http://jasperreportsbook.packtpub.com - JasperReports For Java Developers
|

|
RE: maven plugin - run custom action
I am not sure if it is what you need but I used ANT plugin into Maven to
do some custom work.
-----Original Message-----
From: hradec@... [mailto: hradec@...]
Sent: Monday, April 07, 2008 11:13 PM
To: nbusers@...
Subject: RE: [nbusers] maven plugin - run custom action
Thanks for your quick answer.
We have same test dialogs in src/test/java, but IDE run it like JUnit
tests, not like Java application.
Tomas
-----Original Message-----
From: Milos.Kleint@... [mailto: Milos.Kleint@...]
Sent: Tuesday, April 08, 2008 8:05 AM
To: nbusers@...
Subject: Re: [nbusers] maven plugin - run custom action
You cannot, it's not implemented.
you could workaround it eventually. Either hijack the Run File/Debug
File action mappings for that or define a custom action with hardwired
class reference or the file in question in general.
I'm wondering what's the actual usecase, what are you trying to achieve?
Regards
Milos
hradec@... wrote:
>
> Hello
>
>
>
> I am using Maven plugin for NetBeans IDE version 3.0.11.
>
> How can I run custom action on selected class?
>
> The popup menu for running custom actions appear only on a project,
> but not on a file.
>
>
>
> Thanks
>
> Tomas
>
>
>
>
>
|