This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package grails.converters.tests | |
import grails.converters.JSON | |
import org.codehaus.groovy.runtime.typehandling.GroovyCastException | |
import spock.lang.Specification | |
/** | |
* Created by Angel Ruiz. | |
*/ | |
class JSONObjectNullSpec extends Specification { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String getCarInsuranceName(Person person) { | |
String insuranceName = person?.getCar()?.getInsurance()?.getName() | |
return insuranceName?:"Unknown" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ taglib uri="http://com.nerderg/ajaxanywhere" prefix="aa" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="${action}" method="post" aa-refresh-zones="aaZone1Example1, aaZone2Example1"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form ....> | |
... | |
<div> | |
<button type="submit" aa-refresh-zones="aaZone1Example2" class="btn btn-primary" name="refreshTextButton" value="Refresh Text">Refresh Text</button> | |
<input type="image"aa-refresh-zones="aaZone1Example2" src="<c:url value="/img/refresh.png"/>" name="refreshTextButton" value="Refresh Text"/> | |
<input type="submit" aa-refresh-zones="aaZone2Example2" class="btn btn-info" name="showCodeButton" value="Show Code"/> | |
</div> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form ...> | |
... | |
<sf:select path="continentCode" aa-refresh-zones="countryZone, capitalZone" id="continentCode"> | |
<sf:option value="">-- Select One --</sf:option> | |
<sf:options items="${countryForm.continentsSet}" itemLabel="value" itemValue="key"/> | |
</sf:select> | |
... | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="<c:url value="/action/examples/4?data=whatever"/>" aa-refresh-zones="codeLayer4">Show Code</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aa:zone id="myZone"> | |
<!-- Zone Content --> | |
... | |
</aa:zone> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>com.nerderg.ajaxanywhere</groupId> | |
<artifactId>ajaxanywhere</artifactId> | |
<version>2.0</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<servlet> | |
<servlet-name>AAResourcesServlet</servlet-name> | |
<servlet-class>com.nerderg.ajaxanywhere.servlet.StaticResourcesServlet</servlet-class> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>AAResourcesServlet</servlet-name> | |
<url-pattern>/js/jquery-aa.js</url-pattern> | |
</servlet-mapping> |
OlderNewer