Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
How to render this via Java and show in react?
<linkURL jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/pathfield" fieldLabel="Link" nodeTypes="cq:Page" name="./linkURL" required="{Boolean}true" rootPath="/content/demoproject"/>
Solved! Go to Solution.
Hi @stefanjank ,
${properties.linkURL}
import org.apache.sling.api.resource.Resource; import org.apache.sling.models.annotations.Model; import javax.inject.Inject; @Model(adaptables = Resource.class) public class LinkURLModel { @Inject private String linkURL; public String getLinkURL() { return linkURL; } }
<div data-sly-use.url="com.training.osgi.core.models.LinkURLModel"> Link URL: ${url.linkURL} </div>
Hope that helps!
Regards,
Santosh
View solution in original post
Views
Likes
Replies
Like