You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by AlbertoAlmagro <al...@gmail.com> on 2011/04/26 21:10:34 UTC

Firefox 4 does not handle onSelectFrom...

Hi,

I have been trying for hours to find out what is happing with
onSelectFrom... in Firefox 4. In Google Chrome and Safari all is OK but
Firefox4 isn't able to recognise the onSelectFrom... methods and execute the
corresponding one. The code is the following:

/* Template */
<form t:type="Form" t:id="addCoordinatesForm">
   	
   		<t:errors/>  		
   		Some inputs....
	  
	    <div class="button">
			<input style="margin: 0 5px;" t:type="Submit" t:id="migrate"
                                  value="${message:button-migrate}"/>
			<input style="margin: 0 5px;" t:type="Submit" t:id="updatemap" 
                                  value="${message:button-updatemap}"/>
	    </div>
</form>


/* Java Handlers */
@SuppressWarnings("unused")
	@Component(parameters = "image=prop:imgmigrate")
	private Submit migrate;

	@SuppressWarnings("unused")
	@Property
	@Inject
	@Path("context:images/migrate.png")
	private Asset imgmigrate;

	@SuppressWarnings("unused")
	@Component(parameters = "image=prop:imgupdatemap")
	private Submit updatemap;

	@SuppressWarnings("unused")
	@Property
	@Inject
	@Path("context:images/updatemap.png")
	private Asset imgupdatemap;

void onSelectedFromMigrate() throws InstanceNotFoundException,
			TransformationException {
		System.out.println();
		actualizacion = false;
		idChangeset = new Long(-1);
		String appName = ConfigurationParametersManager.getParameter("appname");
		boolean isTest = new Boolean(
				ConfigurationParametersManager.getParameter("test"));

		ChangesetTO changeset = new ChangesetTO(appName, "MigrationFromDBToOSM");
		double leftcoord = Double.valueOf(leftcoordAsString);
		double bottomcoord = Double.valueOf(bottomcoordAsString);
		double rightcoord = Double.valueOf(rightcoordAsString);
		double topcoord = Double.valueOf(topcoordAsString);
		idChangeset = applicationService.migrateDataFromDBToOSM(idConcepto,
				userSession.getIdCuentaOsm(), changeset, leftcoord,
				bottomcoord, rightcoord, topcoord, contextClient, isTest);
	}

	void onSelectedFromUpdatemap() throws InstanceNotFoundException,
			TransformationException {
		System.out.println();
		actualizacion = true;
		link = this.getBaseLink();
		link.addParameter("left", leftcoordAsString);
		link.addParameter("bottom", bottomcoordAsString);
		link.addParameter("right", rightcoordAsString);
		link.addParameter("top", topcoordAsString);
		link.addParameter("zoom", zoomAsString);
	}

	Object onSuccess() {
		if (!actualizacion) {
			migrarBdOsmDetails.setIdChangeset(idChangeset);
			return migrarBdOsmDetails;
		} else {
			return link;
		}
	}


Has this already happened to any of you? Any help/ideas?

Thank you in advance,
Kind Regards,
Alberto

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Firefox-4-does-not-handle-onSelectFrom-tp4341773p4341773.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Firefox 4 does not handle onSelectFrom...

Posted by AlbertoAlmagro <al...@gmail.com>.
If you put the property image in the template instead of the java file i.e.

<input style="margin: 0 5px;" t:type="Submit"
image="context:images/migrate.png"
          t:id="migrate" value="${message:button-migrate}"/>
<input style="margin: 0 5px;" t:type="Submit"
image="context:images/updatemap.png" 
          t:id="updatemap" value="${message:button-updatemap}"/>

It happens the same, Safari and Chrome execute right but not Firefox4... so
don't be afraid of 2012

Any ideas?

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Firefox-4-does-not-handle-onSelectFrom-tp4341773p4341815.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Firefox 4 does not handle onSelectFrom...

Posted by Sven Homburg <ho...@googlemail.com>.
If this should come true,
we need no longer afraid of 21 December 2012 !


with regards
Sven Homburg
Founder of the Chenille Kit Project
http://chenillekit.codehaus.org





2011/4/26 AlbertoAlmagro <al...@gmail.com>:
> Hi,
>
> I have been trying for hours to find out what is happing with
> onSelectFrom... in Firefox 4. In Google Chrome and Safari all is OK but
> Firefox4 isn't able to recognise the onSelectFrom... methods and execute the
> corresponding one. The code is the following:
>
> /* Template */
> <form t:type="Form" t:id="addCoordinatesForm">
>
>                <t:errors/>
>                Some inputs....
>
>            <div class="button">
>                        <input style="margin: 0 5px;" t:type="Submit" t:id="migrate"
>                                  value="${message:button-migrate}"/>
>                        <input style="margin: 0 5px;" t:type="Submit" t:id="updatemap"
>                                  value="${message:button-updatemap}"/>
>            </div>
> </form>
>
>
> /* Java Handlers */
> @SuppressWarnings("unused")
>        @Component(parameters = "image=prop:imgmigrate")
>        private Submit migrate;
>
>        @SuppressWarnings("unused")
>        @Property
>        @Inject
>        @Path("context:images/migrate.png")
>        private Asset imgmigrate;
>
>        @SuppressWarnings("unused")
>        @Component(parameters = "image=prop:imgupdatemap")
>        private Submit updatemap;
>
>        @SuppressWarnings("unused")
>        @Property
>        @Inject
>        @Path("context:images/updatemap.png")
>        private Asset imgupdatemap;
>
> void onSelectedFromMigrate() throws InstanceNotFoundException,
>                        TransformationException {
>                System.out.println();
>                actualizacion = false;
>                idChangeset = new Long(-1);
>                String appName = ConfigurationParametersManager.getParameter("appname");
>                boolean isTest = new Boolean(
>                                ConfigurationParametersManager.getParameter("test"));
>
>                ChangesetTO changeset = new ChangesetTO(appName, "MigrationFromDBToOSM");
>                double leftcoord = Double.valueOf(leftcoordAsString);
>                double bottomcoord = Double.valueOf(bottomcoordAsString);
>                double rightcoord = Double.valueOf(rightcoordAsString);
>                double topcoord = Double.valueOf(topcoordAsString);
>                idChangeset = applicationService.migrateDataFromDBToOSM(idConcepto,
>                                userSession.getIdCuentaOsm(), changeset, leftcoord,
>                                bottomcoord, rightcoord, topcoord, contextClient, isTest);
>        }
>
>        void onSelectedFromUpdatemap() throws InstanceNotFoundException,
>                        TransformationException {
>                System.out.println();
>                actualizacion = true;
>                link = this.getBaseLink();
>                link.addParameter("left", leftcoordAsString);
>                link.addParameter("bottom", bottomcoordAsString);
>                link.addParameter("right", rightcoordAsString);
>                link.addParameter("top", topcoordAsString);
>                link.addParameter("zoom", zoomAsString);
>        }
>
>        Object onSuccess() {
>                if (!actualizacion) {
>                        migrarBdOsmDetails.setIdChangeset(idChangeset);
>                        return migrarBdOsmDetails;
>                } else {
>                        return link;
>                }
>        }
>
>
> Has this already happened to any of you? Any help/ideas?
>
> Thank you in advance,
> Kind Regards,
> Alberto
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Firefox-4-does-not-handle-onSelectFrom-tp4341773p4341773.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Firefox 4 does not handle onSelectFrom...

Posted by AlbertoAlmagro <al...@gmail.com>.
Hi Thiago, neither for me, but this is a fact, I am getting that weird
behaviour

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Firefox-4-does-not-handle-onSelectFrom-tp4341773p4341817.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Firefox 4 does not handle onSelectFrom...

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 26 Apr 2011 16:10:34 -0300, AlbertoAlmagro  
<al...@gmail.com> wrote:

> Hi,
>
> I have been trying for hours to find out what is happing with
> onSelectFrom... in Firefox 4. In Google Chrome and Safari all is OK but
> Firefox4 isn't able to recognise the onSelectFrom... methods and execute  
> the corresponding one. The code is the following:

I'm sorry, but this doesn't make any sense. You're talking about  
server-side events, so the browser used shouldn't make any difference at  
all. ;)

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Firefox 4 does not handle onSelectFrom...

Posted by AlbertoAlmagro <al...@gmail.com>.
If somebody has the same problem as me, I solved it finally using CSS to
create the background image instead of using a custom made image. Now it
works in every browser including Firefox 4.

Regards,
Alberto Almagro Sotelo

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Firefox-4-does-not-handle-onSelectFrom-tp4341773p4343314.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Firefox 4 does not handle onSelectFrom...

Posted by AlbertoAlmagro <al...@gmail.com>.
Thank you a lot Josh, and to all of you for your answers. I will conclude
then that it is problem of firefox... I will try to solve it using CSS.

Thank you again,
Kind regards,
Alberto Almagro Sotelo

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Firefox-4-does-not-handle-onSelectFrom-tp4341773p4342089.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Firefox 4 does not handle onSelectFrom...

Posted by Josh Canfield <jo...@gmail.com>.
I'm guessing that this has something to do with it...

http://www.onenaught.com/posts/382/firefox-4-change-input-type-image-only-submits-x-and-y-not-name


On Tue, Apr 26, 2011 at 12:45 PM, AlbertoAlmagro
<al...@gmail.com> wrote:
> If I quit the image property it works in every browser:
>
> <input style="margin: 0 5px;" t:type="Submit" t:id="migrate"
> value="${message:button-migrate}"/>
> <input style="margin: 0 5px;" t:type="Submit" t:id="updatemap"
> value="${message:button-updatemap}"/>
>
> but it appears as a normal submit button, not as my custom made ones.
>
> Should I submit this failure to someone? (Tapestry/Firefox)
>
> Regards
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Firefox-4-does-not-handle-onSelectFrom-tp4341773p4341842.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Firefox 4 does not handle onSelectFrom...

Posted by AlbertoAlmagro <al...@gmail.com>.
If I quit the image property it works in every browser:

<input style="margin: 0 5px;" t:type="Submit" t:id="migrate"
value="${message:button-migrate}"/>
<input style="margin: 0 5px;" t:type="Submit" t:id="updatemap"
value="${message:button-updatemap}"/>

but it appears as a normal submit button, not as my custom made ones.

Should I submit this failure to someone? (Tapestry/Firefox)

Regards

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Firefox-4-does-not-handle-onSelectFrom-tp4341773p4341842.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org